home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19990725-20000114
/
000208_news@columbia.edu _Sun Oct 17 16:56:25 1999.msg
< prev
next >
Wrap
Internet Message Format
|
2000-01-13
|
2KB
Return-Path: <news@columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id QAA26324
for <kermit.misc@watsun.cc.columbia.edu>; Sun, 17 Oct 1999 16:56:25 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id QAA27196
for kermit.misc@watsun.cc.columbia.edu; Sun, 17 Oct 1999 16:27:33 -0400 (EDT)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Subject: Re: Logging Data on ttyS1 with Kermit
Date: 17 Oct 1999 20:27:32 GMT
Organization: Columbia University
Message-ID: <7udbfk$qhp$1@newsmaster.cc.columbia.edu>
To: kermit.misc@columbia.edu
In article <M5qO3.2626$C8.742431@homer.alpha.net>,
Eric J. Paulsen <epaulsen@smls.org> wrote:
: I have a phone switch connected to my RH5.2 Linux box via a serial cable. It
: simply dumps phone usage data. I would like to have kermit upon system
: startup connect to /dev/ttyS1 and log all data to /var/log/phonelog.
:
: While I can get the connection started with a line like:
:
: kermit -l /dev/ttyS1 -b 4800 -c
:
: I'm not sure how to get kermit to write to the specified log file. Any help
: would be appreciated. TIA.
:
Try this:
kermit -C "set line /dev/ttyS1, set speed 4800, -
log session /var/log/phonelog, input -1 XXXX"
where "input -1" means "no time limit" and XXXX is some character string
that will never come. (Note: the line is broken for news; put it all one
one line).
Better, however, to use a script. The following is for C-Kermit 7.0:
---(cut here)---
#!/usr/local/bin/wermit +
set carrier-watch off ; If the device does not assert CD
set modem type none
set line /dev/ttyS1
if fail exit 1 Can't open /dev/ttyS1
set speed 4800
log session /var/log/phonelog append ; Append to this log file
if fail exit 1 Can't open /var/log/phonelog
input -1 SOME-STRING-THAT-WILL-NEVER-COME
if fail exit 1 INPUT failed
exit 0 ; Theoretically this statement will not be reached.
---(cut here)---
Cut out and save the script, if necessary change the first line to reflect
the actual location of the C-Kermit 7.0 binary, give the script execute
permission, and run it as if it were a shell script. Find C-Kermit 7.0 at:
http://www.columbia.edu/kermit/ck70.html
- Frank